package cn.shyouchi.wuguanjia.android.ui.search;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.shyouchi.wuguanjia.android.R;
import cn.shyouchi.wuguanjia.android.base.BaseActivity;
import cn.shyouchi.wuguanjia.android.widget.TopBar;

public class SearchActivity extends BaseActivity {


    @BindView(R.id.topBar)
    TopBar mTopBar;
    @BindView(R.id.et_keyword)
    EditText mEtKeyword;
    @BindView(R.id.btn_search)
    ImageView mBtnSearch;
    @BindView(R.id.iv_search_module_security)
    ImageView mIvSearchModuleSecurity;
    @BindView(R.id.iv_search_module_name_security)
    TextView mIvSearchModuleNameSecurity;
    @BindView(R.id.module_security)
    RelativeLayout mModuleSecurity;
    @BindView(R.id.iv_search_module_clean)
    ImageView mIvSearchModuleClean;
    @BindView(R.id.iv_search_module_name_clean)
    TextView mIvSearchModuleNameClean;
    @BindView(R.id.module_clear)
    RelativeLayout mModuleClear;
    @BindView(R.id.iv_search_module_property)
    ImageView mIvSearchModuleProperty;
    @BindView(R.id.iv_search_module_name_property)
    TextView mIvSearchModuleNameProperty;
    @BindView(R.id.module_property)
    RelativeLayout mModuleProperty;
    @BindView(R.id.activity_search)
    LinearLayout mActivitySearch;

    @Override
    public int initContentView() {
        return R.layout.activity_search;
    }

    @Override
    public void initInjector() {


    }


    @Override
    public void initUiAndListener() {
        ButterKnife.bind(this);
        mTopBar.setLeftIcon(R.mipmap.ic_back);
        setSupportActionBar(mTopBar.getToolbar());

    }

    @Override
    protected boolean isApplyStatusBarTranslucency() {
        return false;
    }

    @Override
    protected boolean isApplyStatusBarColor() {
        return true;
    }




    @OnClick({R.id.btn_search, R.id.module_security, R.id.module_clear, R.id.module_property})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_search:
                SearchResultActivity.start(mContext, "", "");
                break;
            case R.id.module_security:
                SearchResultActivity.start(mContext, "", "");
                break;
            case R.id.module_clear:
                SearchResultActivity.start(mContext, "", "");
                break;
            case R.id.module_property:
                SearchResultActivity.start(mContext, "", "");
                break;
        }
    }
}
